<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>公告发布</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row">
        <form class="layui-form">
            <div class="layui-row">
                <form class="layui-form">
                    <div class="layui-form-item" hidden="hidden">
                        <label for="nId" class="layui-form-label">
                        </label>
                        <div class="layui-input-inline">
                            <input type="number" id="nId" name="nId"
                                   autocomplete="off" class="layui-input">
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <label for="nTitle" class="layui-form-label">
                            公告标题
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="nTitle" name="nTitle"
                                   autocomplete="off" class="layui-input">
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" for="nContent">
                            公告内容
                        </label>
                        <div class="layui-input-inline">
                            <textarea placeholder="请在此处输入公告内容" name="nContent" id="nContent"></textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label" for="nTarget">
                            接收方
                        </label>
                        <div class="layui-input-inline">
                            <input type="number" id="nTarget" name="nTarget" autocomplete="off"
                                   class="layui-input">
                        </div>

                    </div>
                    <div class="layui-form-item">
                        <label for="nGrade" class="layui-form-label">
                            重要等级
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="nGrade" name="nGrade" autocomplete="off"
                                   class="layui-input">
                        </div>

                    </div>

                    <div class="layui-form-item">
                        <label for="nStatus" class="layui-form-label">
                            状态
                        </label>
                        <div class="layui-input-inline" >
                            <select id="nStatus" name="nStatus">
                                <option name="select" value=2>已发布</option>
                                <option name="select" value=1>已关闭</option>
                            </select>
                        </div>

                    </div>

                    <div class="layui-form-item">
                        <label  class="layui-form-label">
                            公告种类
                        </label>
                        <div class="layui-input-inline" name="nCategory">
                            <input type="text" id="nCategory" name="nCategory" autocomplete="off"
                                   class="layui-input">
                        </div>

                    </div>

                    <div class="layui-form-item">
                        <label for="nTag" class="layui-form-label">
                            关键词
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="nTag" name="nTag"
                                   autocomplete="off" class="layui-input">
                        </div>

                    </div>

                    <div class="layui-form-item">
                        <label for="L_repass" class="layui-form-label"></label>
                        <button id="L_repass" class="layui-btn" lay-filter="add" lay-submit="" type="button">
                            修改
                        </button>
                    </div>
                </form>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" src="js/common/DataModify.js"></script>
<script type="text/javascript" src="./js/common/ajaxUse.js"></script>
<script>layui.use(['form', 'layer'],
    function() {
        $ = layui.jquery;
        var form = layui.form,
            layer = layui.layer;
        //监听提交
        form.on('submit(add)',
            function() {
                submitModify('/Notice/updateNotice', getUpdate(0));
            });
    });
</script>
</body>
</html>
